package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.es.SkuEsModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "gulimall-search")
public interface SaveProductToEsFeignClient {
    @PostMapping("product/search/save")
    public R productUp(@RequestBody List<SkuEsModel> skuEsModels);
}
